<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
    <title id="title">Title</title>
</head>
<script language="JavaScript">
       function callAndroid(){
         android.showToast('JS 唤起 Android Toast')
       }
</script>
<body>
<h1> JS invoke Java </h1>
<button type="button" id="button1" onclick="callAndroid()">show Android toast</button>
</body>
</html>